home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Communication / MacWebLint-1.013 / MacWebLint.rc < prev    next >
Text File  |  1996-02-05  |  13KB  |  305 lines

  1. #
  2. # sample configuration file for weblint
  3. # distributed as part of weblint 1.013
  4. #
  5. # The settings in this file reflect the built-in defaults.
  6. # I.e. if a warning is enabled in this file, then it is enabled by
  7. # default, and you don't have to enable it in your .weblintrc.
  8. #
  9. #========================================================================
  10. #    Weblint Variables
  11. #========================================================================
  12.  
  13. #
  14. # message-style: style of warning message to generate
  15. #    lint    generate warnings similar to traditional lint:
  16. #            file(line #): warning
  17. #        this is the default
  18. #    short    don't include the filename in the warning message:
  19. #            line #: warning
  20. #    terse    a style which is easy for another program to parse:
  21. #            file:line #:warning-identifier
  22.  
  23. set message-style = lint
  24.  
  25. #
  26. # directory-index: comma deliminated list of filenames for directory indices
  27. #
  28. # JS - 2-4-96
  29. # Added default.html for Macintosh users. :)
  30.  
  31. set directory-index = index.html, default.html
  32.  
  33. #========================================================================
  34. #    Extensions
  35. #========================================================================
  36.  
  37. #------------------------------------------------------------------------
  38. # Allow netscape HTML extensions, such as CENTER and FONT
  39. #------------------------------------------------------------------------
  40. # uncomment following line to enable the netscape extensions
  41. # extension netscape
  42.  
  43. #------------------------------------------------------------------------
  44. # Allow java HTML extensions: the APPLET and PARAM elements
  45. #------------------------------------------------------------------------
  46. # uncomment following line to enable the java extensions
  47. # extension java
  48.  
  49.  
  50. #========================================================================
  51. #    Weblint Warnings
  52. #========================================================================
  53.  
  54. #------------------------------------------------------------------------
  55. # By default, when recursing in a directory, weblint will check files
  56. # which are symlinks.  Uncomment the following line if you want weblint
  57. # to skip symlinks.  This is equivalent to the -l command-line switch
  58. #------------------------------------------------------------------------
  59. # ignore symlinks
  60.  
  61. #------------------------------------------------------------------------
  62. # There are two checks for the case of element tags:
  63. #    upper-case    all tags should be in upper case
  64. #    lower-case    all tags should be in lower case
  65. # If both are disabled, then case is ignored
  66. #------------------------------------------------------------------------
  67. disable upper-case lower-case
  68.  
  69. #------------------------------------------------------------------------
  70. # Bad style to use `here' as anchor text
  71. #------------------------------------------------------------------------
  72. enable here-anchor
  73.  
  74. #------------------------------------------------------------------------
  75. # Flag any elements which are not recognized.  This will catch mis-typed
  76. # elements (e.g. <TOTLE>, or <\BODY>).
  77. #------------------------------------------------------------------------
  78. enable unknown-element
  79.  
  80. #------------------------------------------------------------------------
  81. # check element attributes to see if they are legal
  82. #------------------------------------------------------------------------
  83. enable unknown-attribute
  84.  
  85. #------------------------------------------------------------------------
  86. # flag if no HEAD element in page
  87. #------------------------------------------------------------------------
  88. enable require-head
  89.  
  90. #------------------------------------------------------------------------
  91. # Flag elements which should only appear once on a page (eg TITLE)
  92. #------------------------------------------------------------------------
  93. enable once-only
  94.  
  95. #------------------------------------------------------------------------
  96. # Flag case where page has BODY element, but no HEAD defined
  97. #------------------------------------------------------------------------
  98. enable body-no-head
  99.  
  100. #------------------------------------------------------------------------
  101. # If you want outer element to be <HTML>
  102. #------------------------------------------------------------------------
  103. enable html-outer
  104.  
  105. #------------------------------------------------------------------------
  106. # Flag elements which are only allowed to appear in HEAD element
  107. #------------------------------------------------------------------------
  108. enable head-element
  109.  
  110. #------------------------------------------------------------------------
  111. # Flag elements which aren't allowed to appear in HEAD element
  112. #------------------------------------------------------------------------
  113. enable non-head-element
  114.  
  115. #------------------------------------------------------------------------
  116. # Flag obsolete elements, such as XMP and LISTING
  117. #------------------------------------------------------------------------
  118. enable obsolete
  119.  
  120. #------------------------------------------------------------------------
  121. # Flag mis-matched begin and end tags;  for example:
  122. #    <H1> ... </H2>
  123. #------------------------------------------------------------------------
  124. enable mis-match
  125.  
  126. #------------------------------------------------------------------------
  127. # Flag any IMG elements which don't have ALT text defined.
  128. #------------------------------------------------------------------------
  129. enable img-alt
  130.  
  131. #------------------------------------------------------------------------
  132. # Flag illegally nested elements (such as anchors).
  133. #------------------------------------------------------------------------
  134. enable nested-element
  135.  
  136. #------------------------------------------------------------------------
  137. # Check for those elements which have required context.
  138. # For example, the <CAPTION> element can only appear in <FIG> or <TABLE>
  139. #------------------------------------------------------------------------
  140. enable required-context
  141.  
  142. #------------------------------------------------------------------------
  143. # Check for mailto: LINK in header;  for example:
  144. #    <LINK REV=MADE HREF="mailto:neilb@khoral.com">
  145. # This lets at least lynx users comment on a page.
  146. #------------------------------------------------------------------------
  147. disable mailto-link
  148.  
  149. #------------------------------------------------------------------------
  150. # Flag overlapped elements.  For example:
  151. #    <A HREF="..."> <B> text </A> </B>
  152. #------------------------------------------------------------------------
  153. enable element-overlap
  154.  
  155. #------------------------------------------------------------------------
  156. # Generate a warning if closing tag is not seen for elements where
  157. # it is expected.  A common case is <A NAME="..."> ... </A>.
  158. #------------------------------------------------------------------------
  159. enable unclosed-element
  160.  
  161. #------------------------------------------------------------------------
  162. # Generate a warning if markup appears inside a comment.  This can
  163. # confuse quite a few browsers, so it's not a good idea to do it.
  164. #------------------------------------------------------------------------
  165. enable markup-in-comment
  166.  
  167. #------------------------------------------------------------------------
  168. # You are not allowed to have any whitespace between the opening
  169. # < and element name.
  170. #------------------------------------------------------------------------
  171. enable leading-whitespace
  172.  
  173. #------------------------------------------------------------------------
  174. # Flag potentially unclosed tags:
  175. #    < ... < ... >
  176. #------------------------------------------------------------------------
  177. enable unexpected-open
  178.  
  179. #------------------------------------------------------------------------
  180. # Elements which do not have any required attributes, but for which at
  181. # least one attribute is expected.  Anchors, for example.
  182. #------------------------------------------------------------------------
  183. enable expected-attribute
  184.  
  185. #------------------------------------------------------------------------
  186. # Required element attributes.  Eg IMG tag must have SRC attribute.
  187. #------------------------------------------------------------------------
  188. enable required-attribute
  189.  
  190. #------------------------------------------------------------------------
  191. # Currently just checks local links, to see if target file exists.
  192. # disabled at the moment, since it generates bogus warnings if the file
  193. # path included directories.
  194. #------------------------------------------------------------------------
  195. disable bad-link
  196.  
  197. #------------------------------------------------------------------------
  198. # Check for headings which are more than 1 level deeper than previous.
  199. # Example: <H1> followed by <H3>
  200. #------------------------------------------------------------------------
  201. enable heading-order
  202.  
  203. #------------------------------------------------------------------------
  204. # Check for odd number of double quotes in tag, to catch things like:
  205. #        <A HREF="url >
  206. #------------------------------------------------------------------------
  207. enable odd-quotes
  208.  
  209. #------------------------------------------------------------------------
  210. # Warn about closing tag for elements which don't take a closing tag.
  211. # For example: <IMG SRC="foo.gif" ALT="alt text"></IMG>
  212. #------------------------------------------------------------------------
  213. enable illegal-closing
  214.  
  215. #------------------------------------------------------------------------
  216. # Warn about unclosed comments.  For example:
  217. #    <!-- this comment is not correctly closed >
  218. # Legal SGML comments are:
  219. #    <!-- ... blah blah ... -->
  220. #------------------------------------------------------------------------
  221. enable unclosed-comment
  222.  
  223. #------------------------------------------------------------------------
  224. # Warning for use of physical font markup, rather than logical
  225. # For example:
  226. #    <B> where you should use <STRONG>
  227. #    <I> where you should use <EM>
  228. #    <TT> where you should use <CODE>, <KBD>, <VAR>, or <SAMP>
  229. #------------------------------------------------------------------------
  230. disable physical-font
  231.  
  232. #------------------------------------------------------------------------
  233. # Warning for repeated attributes within the same tag.  For example:
  234. #    <IMG SRC="foo.gif" SRC="bar.gif">
  235. #    <A NAME="fred" NAME="bloggs">
  236. #------------------------------------------------------------------------
  237. enable repeated-attribute
  238.  
  239. #------------------------------------------------------------------------
  240. # Warn against use of ' as a delimiter for attribute values.  E.g.:
  241. #    <A HREF='http://www.khoral.com/'>KRI</A>
  242. #------------------------------------------------------------------------
  243. enable attribute-delimiter
  244.  
  245. #------------------------------------------------------------------------
  246. # Warn against use of netscape-specific attributes for non netscape-specific
  247. # elements.  For example:
  248. #    <BODY BGCOLOR="#fefefe">
  249. #------------------------------------------------------------------------
  250. enable netscape-attribute
  251.  
  252. #------------------------------------------------------------------------
  253. # Warn about attributes on a closing tag of container element.  E.g.:
  254. #    <A HREF="foobar.html">click here!</A NAME="foobar">
  255. #------------------------------------------------------------------------
  256. enable closing-attribute
  257.  
  258. #------------------------------------------------------------------------
  259. # When recursing in a directory, check whether there is a directory
  260. # index file.  See also the variable `directory-index', which specifies
  261. # the name of index file to look for.
  262. #------------------------------------------------------------------------
  263. enable directory-index
  264.  
  265. #------------------------------------------------------------------------
  266. # Warn about empty container elements.  For example:
  267. #    <TITLE></TITLE>
  268. #------------------------------------------------------------------------
  269. enable empty-container
  270.  
  271. #------------------------------------------------------------------------
  272. # Warn about situations where one element is expected to immediately
  273. # follow another, with no tags or text between. For example:
  274. #    1) LH should be the first thing in a UL, if it appears at all
  275. #    2) should be nothing between </HEAD> and <BODY>
  276. #------------------------------------------------------------------------
  277. enable must-follow
  278.  
  279. #------------------------------------------------------------------------
  280. # Warn about IMG elements which don't have the WIDTH and HEIGHT
  281. # attributes set. Setting these attributes can improve page layout speed
  282. # on some browsers.
  283. #------------------------------------------------------------------------
  284. disable img-size
  285.  
  286. #------------------------------------------------------------------------
  287. # Warn about leading or trailing whitespace for certain container
  288. # elements: A, TITLE, H1 through H6.
  289. #------------------------------------------------------------------------
  290. disable container-whitespace
  291.  
  292. #------------------------------------------------------------------------
  293. # Warn if you don't have a DOCTYPE element as the first thing in
  294. # your document.
  295. #------------------------------------------------------------------------
  296. disable require-doctype
  297.  
  298. #------------------------------------------------------------------------
  299. # Warn if you a metacharacter is included literally, rather than using
  300. # the appropriate entity. Currently this just warns about use of >,
  301. # in which case you should use >
  302. #------------------------------------------------------------------------
  303. enable literal-metacharacter
  304.  
  305.